<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page import="com.xzl.xep.exception.FormValidationException"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<% FormValidationException formErr = (FormValidationException)request.getAttribute("formErr"); %>


<!DOCTYPE html >
<html class="bg-black">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <title>店铺管理--登录</title>
 

    <!-- Bootstrap -->
    <link rel="stylesheet" href="${ctx}/resources/lib/bootstrap/css/bootstrap.min.css">

    <!-- Font Awesome -->
    <link rel="stylesheet" href="${ctx}/resources/lib/font-awesome/css/font-awesome.min.css">
        
    <link href="${ctx}/resources/css/AdminLTE.css" rel="stylesheet" type="text/css" />
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    

</head>

                  <body class="bg-black">

        <div class="form-box" id="login-box">
            <div class="header">店铺管理</div>
            <form action="${ctx}/login" method="post">
                <div class="body bg-gray">
                    <div class="form-group  <%if(formErr != null && formErr.hasError("account")  ) {%> has-error <% }%>">
                        <%if( formErr != null &&  formErr.hasError("account")  ) {%> 
                        <label class="control-label" for="inputError"><i class="fa fa-times"></i><%=formErr.getErrorMessage("account")%></label>
                        
                 <% }%>
                     
                        <input type="text" name="account" class="form-control" placeholder="账户" <%if(formErr != null) {%> value="<%=formErr.getErrorValue("account")%>" <% }%>/>
                    </div>
                    <div class="form-group <%if(formErr != null && formErr.hasError("password") ) {%> has-error <% }%>">
                        <%if( formErr != null &&  formErr.hasError("password")  ) {%> 
                        <label class="control-label" for="inputError"><i class="fa fa-times内容结束"></i><%=formErr.getErrorMessage("password")%></label>
                        
                 <% }%>
                        <input type="password" name="password" class="form-control" placeholder="密码" <%if(formErr != null) {%> value="<%=formErr.getErrorValue("password")%>" <% }%>/>
                    </div>          
              
                </div>
                <div class="footer">                                                               
                    <button type="submit" class="btn bg-olive btn-block">登录</button>  
                  
                    
                </div>
            </form>

            <div class="margin text-center">
             
               

            </div>
        </div>

    <script src="${ctx}/resources/lib/jquery/jquery.min.js"></script>
    <script src="${ctx}/resources/lib/bootstrap/js/bootstrap.min.js"></script>

  </body>
</html>
